﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ExpertSystem.Exeptions;

namespace ExpertSystem.Domains
{
    class EqualsFunction : Function
    {

        public override bool Calculate()
        {
            if (Variables.Count == 2)
            {
                return Variables[0].Value.Equals(Variables[1].Value);
            }
            else
            {
                throw new WrongNumberOfArguments();
            }
        }
    }
}
